package cn.niitcxl.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@TableName("edu_file")
@Data
@ToString
public class eduFile {
    @TableId
    private Integer fileId;
    private String fileName;
    private String fileType;
    private String filePath;
    private String fileDescription;
    //对该字段做自动填充
    @TableField(value = "insert_date",fill = FieldFill.INSERT_UPDATE)
    //对日期做格式化
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date insertDate;
}